<@main_macros.mobileShopHeader title="水果团"/>
  <body>

    <!-- Make sure all your bars are the first things in your <body> -->
    <header class="bar bar-nav">
		<a class="icon icon-left-nav pull-left" href="${ctx?if_exists}/mobile/wxshop/listTuan"
			data-transition="slide-out"></a> 
		<h1 class="title">团购编辑</h1>
    </header>

    <!-- Wrap all non-bar HTML in the .content div (this is actually what scrolls) -->
    
    <div class="content">
		<form method="post" action="${ctx?if_exists}/mobile/wxshop/saveTuan">
			<div class="input-row">
   				 <label>标题</label>
   				<input type="text" name="tuan.title" placeholder="">
  			</div>

			 <div class="input-row">
   				 <label>选择商品</label>
   					<select name="tuan.goodsId">
					<#list allGoods as goods>
						<option value=${goods["goodsId"]?if_exists}>${(goods.goodsName)?if_exists}</option>
					</#list>
					</select>
  			</div>

  			<div class="input-row">
   	 			<label>开始时间</label>
   	 			<input type="text"  name="tuan.startTime" placeholder="">
  			</div>
			<div class="input-row">
   	 			<label>结束时间</label>
   	 			<input type="text"  name="tuan.endTime" placeholder="">
  			</div>
			<input type="submit" class="btn btn-positive btn-block" value="创建团购">
		</form>
    </div>
  </body>
</html>